import httpInstance from '../utils/http'

//轮播器接口(banner)
export function getBannerAPI (params = {}){
   //默认为首页为1,商品页面为2
   const {distributionSite = '1'} = params
   return httpInstance({
        url:'home/banner',
        method:'get',
        params:{
            distributionSite
        }
   })
}

//获取新鲜好物
export function getNewAPI (){
   return httpInstance({
      url:'/home/new',
      method:'get'
   })
}

//获取人气推荐
export function getHotAPI (){
   return httpInstance({
      url:'/home/hot',
      method:'get'
   })
}

export function getGoodsAPI (){
   return httpInstance({
      url:'/home/goods',
      method:'get'
   })
}